<div class="wrapper">

    {menu}

    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-12">
                    <div class="view-header">
                        <div class="header-title">
                            <h3 class="m-b-xs">All reports</h3>
                            <small>The reports page allows you to view, search, share, and delete all of your payload's
                                reports. Use it to track important data and to share reports with your stakeholders.</small>
                        </div>
                    </div>
                    <hr>
                </div>
            </div>

            {message}

            <div class="row">

                <div class="col-lg-12">
                    <select class="form-control content-select" id="payloadListReport" name="payloadListReport">
                        {%foreach payload}
                        <option value="{payload->id}" {payload->selected}>{payload->name}</option>
                        {%/foreach}
                    </select>
                    <br>
                </div>

                <div class="col-lg-12">
                    <div class="panel panel-filled">
                        <div class="panel-heading">Information</div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table id="reports" class="table" style="white-space: nowrap;width:100%;">
                                    <thead>
                                        <tr>
                                            <th style="width:120px">
                                                <label class="reports-checkbox-label">
                                                    <input id="select-all" name="select-all" type="checkbox">
                                                    <span class="reports-checkbox-custom rectangular"
                                                        style="top:4px!important"></span>
                                                </label>
                                            </th>
                                            <th style="width:3%">ID</th>
                                            <th>URL</th>
                                            <th>IP</th>
                                            <th>Payload</th>
                                        </tr>
                                    </thead>
                                    <tbody id="reports-list">
                                        
                                    </tbody>
                                </table>

                                <div class="">
                                    <div class="dataTables_paginate paging_simple_numbers">
                                        with selected:
                                        <button class="btn delete-selected">Delete</button>
                                        <button class="btn archive-selected">Archive</button>
                                    </div><br>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <div class="modal fade" id="shareModal" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button class="close" data-dismiss="modal" type="button">&times;</button>
                    <h3 class="m-b-xs">Share</h3>
                    <small>Share your reports using a direct link anyone without permissions can view</small>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label class="control-label" for="domain">Direct share link</label>
                        <input class="form-control" id="shareid" type="text" value="">
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" type="button">Close</button>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="/assets/js/dataTables/jquery.dataTables.js"></script>
<script src="/assets/js/dataTables/bootstrap.dataTables.js"></script>
<script src="/assets/js/dataTables/init.js"></script>